<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<div class="t_bar">项目基本情况</div>
<input type="hidden" name="zh_parsen/fzr_name"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name"/>" />
<input type="hidden" name="zh_parsen/fzr_mobile"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile"/>" />
<input type="hidden" name="zh_parsen/fzr_tel"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work"/>" />
<input type="hidden" name="zh_parsen/fzr_email"
    value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email"/>" />
<table class="t_css" width="100%" id="table_01">
    <col style="width: 25%" />
    <col style="width: 25%" />
    <col style="width: 16%" />
    <col style="width: 9%" />
    <col style="width: 25%" />
    <tr>
        <td align="right">
            <span class="color_red">*</span>院士工作站名称：
        </td>
        <td colspan="5">
            <input type='text' name='proposal/zh_title' id='zh_title' style="width: 89.5%"
                class="input_css required " maxlength="100"
                value='<x:out select="$xmlData/data/proposal/zh_title"/>' label="院士工作站名称">
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>归口管理部门：
        </td>
        <td>
            <c:set var="recomend_org">{'id':'<x:out
                    select="$xmlData/data/proposal/recomend_org_value" />','name':'<x:out
                    select="$xmlData/data/proposal/recomend_org_name" />'}</c:set>
            <cpt:tree key="recommended_org" cacheable="false" className="hn_iuput_kuang "
                readonly="true" value="${recomend_org}" label="归口管理部门" id="recomend_org"
                onlyChooseLeaf="false" showPattern="all" shieldPattern="0" topCheckbox="true"
                onClick="initTreeValueExt" />
            <input type="hidden" id="recomend_org_value" name="proposal/recomend_org_value"
                class="required"
                value="<x:out select="$xmlData/data/proposal/recomend_org_value" />" label="归口管理部门">
            <input type="hidden" name="proposal/recomend_org_name"
                value="<x:out select="$xmlData/data/proposal/recomend_org_name" />">
        </td>
        <td align="right" colspan="2">上年实现利税（万元）：</td>
        <td>
            <input type='text' name='proposal/lyear_tax' class=""
                onfocus="InitInput.setNumber(this,9,2,2,'',true)" style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/lyear_tax"/>' label="上年实现利税">
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>单位性质：
        </td>
        <td align="center" colspan="5">
            <c:set var="unit_nature">
                <x:out select="$xmlData/data/proposal/unit_nature" />
            </c:set>
            <cpt:checkbox key="unit_nature2" name="proposal/unit_nature" value="${unit_nature }"
                width="30px;" tagType="radio" repeatColumn="3"
                style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
            <input type="hidden" id="unit_nature_value" name="proposal/unit_nature_value"
                class="required" value="<x:out select="$xmlData/data/proposal/unit_nature_value" />"
                label="单位性质">
            <input type="hidden" name="proposal/unit_nature_name"
                value="<x:out select="$xmlData/data/proposal/unit_nature_name" />">
        </td>
    </tr>
    <tr>
        <td align="right">注册时间：</td>
        <td>
            <span name="proposal/registe_date"><x:out
                    select="$xmlData/data/organizations/organization[@submit_org='1']/registe_date" /></span>
        </td>
        <td align="right" colspan="2">注册资本：</td>
        <td>
            <span name="proposal/registe_fund"> <x:out
                    select="$xmlData/data/org_basic_info/registe_fund" />万 <x:out
                    select="$xmlData/data/organizations/organization[@submit_org='1']/registe_fund_money_name" />
            </span>
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>申报日期：
        </td>
        <td colspan="5">
            <c:set var="submit_date">
                <x:out select="$xmlData/data/proposal/submit_date" />
            </c:set>
            <cpt:date id="apply_date_curr" name="proposal/submit_date" value="${submit_date}"
                className="required date" label="申报日期"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>联系人姓名：
        </td>
        <td>
            <input type="text" maxlength="50" name="proposal/contact_psn_cname" class="required"
                label="联系人姓名" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />">
        </td>
        <td align="right" colspan="2">
            <span class="color_red">*</span>联系人手机：
        </td>
        <td>
            <input type="text" name="proposal/contact_psn_mobile" class="required mobile"
                maxlength="11" label="联系人手机" onfocus="InitInput.setNumber(this,11,0,0);"
                value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />">
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>联系电话：
        </td>
        <td>
            <input type="text" maxlength="20" name="proposal/contact_tel" class="required"
                label="联系电话" value="<x:out select="$xmlData/data/proposal/contact_tel" />">
        </td>
        <td align="right" colspan="2">
            <span class="color_red">*</span>邮箱：
        </td>
        <td>
            <input type="text" maxlength="50" name="proposal/contact_email" class="required email"
                label="邮箱" value="<x:out select="$xmlData/data/proposal/contact_email" />">
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>加盟院士姓名：
        </td>
        <td>
            <input type="text" maxlength="30" name="proposal/academician_name" class="required"
                label="加盟院士姓名" value="<x:out select="$xmlData/data/proposal/academician_name" />">
        </td>
        <td align="right" colspan="2">
            <span class="color_red">*</span>院士管理机构：
        </td>
        <td>
            <c:set var="academician_manage">
                <x:out select="$xmlData/data/proposal/academician_manage_value" />
            </c:set>
            <cpt:select id="academician_manage" key="academician_manage" className="input_css"
                name="academician_manage" onChange="initControlValue(this.id);"
                value="${academician_manage }" style="width: 167.5px;border: 1px solid #A1C0DC;"></cpt:select>
            <input type="hidden" name="proposal/academician_manage_value"
                value="${academician_manage }" class="input_text required" label="院士管理机构" />
            <input type="hidden" name="proposal/academician_manage_name"
                value="<x:out select="$xmlData/data/proposal/academician_manage_name" />" />
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>院士任职单位：
        </td>
        <td>
            <input type="text" maxlength="60" name="proposal/academician_unit" class="required"
                label="院士任职单位" value="<x:out select="$xmlData/data/proposal/academician_unit" />">
        </td>
        <td align="right" colspan="2">
            <span class="color_red">*</span>合作领域：
        </td>
        <td>
            <input type="text" maxlength="60" name="proposal/cooperation_field" class="required"
                label="合作领域" value="<x:out select="$xmlData/data/proposal/cooperation_field" />">
        </td>

    </tr>
    <tr>
        <td align="right" rowspan="2">
            <span class="color_red">*</span>工作站备案时间：
        </td>
        <td rowspan="2">
            <c:set var="build_date">
                <x:out select="$xmlData/data/proposal/build_date" />
            </c:set>
            <cpt:date id="build_date" name="proposal/build_date" value="${build_date}"
                className="required date beforeToday" label="工作站备案时间"></cpt:date>
        </td>
        <td align="right" rowspan="2">
            <span class="color_red">*</span>与院士签约期限：
        </td>
        <td align="right">
            <span class="color_red">*</span>开始时间：
        </td>
        <td>
            <c:set var="sign_start_date">
                <x:out select="$xmlData/data/proposal/sign_start_date" />
            </c:set>
            <cpt:date id="sign_start_date" name="proposal/sign_start_date"
                value="${sign_start_date}" className="required date" label="与院士签约期限-->开始时间"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>结束时间：
        </td>
        <td>
            <c:set var="sign_end_date">
                <x:out select="$xmlData/data/proposal/sign_end_date" />
            </c:set>
            <cpt:date id="sign_end_date" name="proposal/sign_end_date" value="${sign_end_date}"
                className="required date dateCompareBeforeE:sign_start_date:sign_end_date"
                label="与院士签约期限-->结束时间"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>项目开始时间：
        </td>
        <td>
            <c:set var="start_date">
                <x:out select="$xmlData/data/proposal/start_date" />
            </c:set>
            <cpt:date id="start_date" name="proposal/start_date" value="${start_date}"
                className="required date" label="项目开始时间"></cpt:date>
        </td>
        <td align="right" colspan="2">
            <span class="color_red">*</span>项目结束时间：
        </td>
        <td>
            <c:set var="end_date">
                <x:out select="$xmlData/data/proposal/end_date" />
            </c:set>
            <cpt:date id="end_date" name="proposal/end_date" value="${end_date}"
                className="required date dateCompareBeforeE:start_date:end_date" label="项目结束时间"></cpt:date>
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>项目报审级次：<br />（省补助资金拨付所属财政局）
        </td>
        <td>
            <c:set var="sub_step">{'id':'<x:out
                    select="$xmlData/data/proposal/sub_step_value" />','name':'<x:out
                    select="$xmlData/data/proposal/sub_step_name" />'}</c:set>
            <cpt:tree key="sub_step" cacheable="false" className="hn_iuput_kuang" readonly="true"
                value="${sub_step}" label="项目报审级次" id="sub_step" onlyChooseLeaf="false"
                showPattern="all" shieldPattern="0" topCheckbox="true" onClick="initTreeValueExt" />
            <input id="sub_step_value" type="hidden" name="proposal/sub_step_value" class="required"
                label="项目报审级次" value="<x:out select="$xmlData/data/proposal/sub_step_value" />" />
            <input id="sub_step_name" type="hidden" name="proposal/sub_step_name"
                value="<x:out select="$xmlData/data/proposal/sub_step_name" />" />
        </td>
        <td align="right" colspan="2">
            <span class="color_red">*</span>项目申请金额：<br />（万元）
        </td>
        <td>
            <input type='text' name='proposal/request_amt' class="input:css required"
                id='request_amt' onfocus="InitInput.setNumber(this,9,2,2)"
                style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/request_amt"/>' label="项目申请金额">
        </td>
    </tr>
</table>

<div class="t_bar">
    <span class="color_red">*</span>单位人员状况
</div>
<table class="t_css" width="100%" id="table_02">
    <col style="width: 25%" />
    <col style="width: 25%" />
    <col style="width: 25%" />
    <col style="width: 25%" />
    <tr>
        <td align="right" colspan="3">职工总数：</td>
        <td>
            <input type='text' name='proposal/worker_total_count' class="required"
                id="worker_total_count" onfocus="InitInput.setNumber(this,9,0,0)"
                style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/worker_total_count"/>' label="职工总数">
        </td>
    </tr>
    <tr>
        <td align="right" colspan="3">从事R&D活动人员数：</td>
        <td>
            <input type='text' name='proposal/worker1_total_count' class="required"
                id="worker1_total_count" onfocus="InitInput.setNumber(this,9,0,0)"
                style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/worker1_total_count"/>'
                label="从事R&D活动人员数">
        </td>
    </tr>
    <tr>
        <td align="right" rowspan="4">其中：</td>
        <td align="right" colspan="2">高级职称：</td>
        <td>
            <input type='text' name='proposal/worker_level1_count' id="worker_level1_count"
                class="required" onfocus="InitInput.setNumber(this,9,0,0)"
                style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/worker_level1_count"/>'
                label="其中-->高级职称">
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">中级职称：</td>
        <td>
            <input type='text' name='proposal/worker_level2_count' id="worker_level2_count"
                class="required" onfocus="InitInput.setNumber(this,9,0,0)"
                style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/worker_level2_count"/>'
                label="其中-->中级职称">
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">其他：</td>
        <td>
            <input type='text' name='proposal/worker_level3_count' id="worker_level3_count"
                class="required" onfocus="InitInput.setNumber(this,9,0,0)"
                style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/worker_level3_count"/>' label="其中-->其他">
        </td>
    </tr>
    <tr>
        <td align="right" colspan="2">合计：</td>
        <td>
            <input type='text' name='proposal/worker_research_total' id="worker_research_total"
                class="gray" readonly="readonly" style="text-align: right;"
                value='<x:out select="$xmlData/data/proposal/worker_research_total"/>'
                label="其中-->合计">
        </td>
    </tr>
    <tr>
        <td align="right">
            <span class="color_red">*</span>项目简述（280字）：
        </td>
        <td colspan="3">
            <textarea rows="9" style="width: 98%" class="input_textarea required maxlength:280"
                label="项目简述" name="proposal/pro_describe"><x:out
                    select="$xmlData/data/proposal/pro_describe" /></textarea>
            <input type="hidden" name="proposal/pro_describe_hidden"
                value="<x:out select="$xmlData/data/proposal/pro_describe_hidden"/>" />
        </td>
    </tr>
</table>

<div class="t_bar">
    <span class="color_red">*</span>科技项目、研发投入情况
</div>
<table class="t_css" width="100%" id="table_03" style="text-align: center;">
    <col style="width: 18%" />
    <col style="width: 16%" />
    <col style="width: 16%" />
    <col style="width: 18%" />
    <col style="width: 16%" />
    <col style="width: 16%" />
    <tr>
        <td>科技项目</td>
        <td>国家级</td>
        <td>省级</td>
        <td>产学研合作</td>
        <td>自主研发</td>
        <td>合计</td>
    </tr>
    <tr>
        <td>承担数</td>
        <td>
            <input type='text' name='proposal/technology_bear_count_level1'
                id="technology_bear_count_level1" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_bear_count_level1"/>'
                label="科技项目-->承担数-->国家级">
        </td>
        <td>
            <input type='text' name='proposal/technology_bear_count_level2'
                id="technology_bear_count_level2" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_bear_count_level2"/>'
                label="科技项目-->承担数-->省级">
        </td>
        <td>
            <input type='text' name='proposal/technology_bear_count_level3'
                id="technology_bear_count_level3" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_bear_count_level3"/>'
                label="科技项目-->承担数-->产学研合作">
        </td>
        <td>
            <input type='text' name='proposal/technology_bear_count_level4'
                id="technology_bear_count_level4" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_bear_count_level4"/>'
                label="科技项目-->承担数-->自主研发">
        </td>
        <td>
            <input type='text' name='proposal/technology_bear_count_total'
                id="technology_bear_count_total" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_bear_count_total"/>'
                label="科技项目-->承担数-->合计">
        </td>
    </tr>
    <tr>
        <td>完成数</td>
        <td>
            <input type='text' name='proposal/technology_complt_count_level1'
                id="technology_complt_count_level1" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_complt_count_level1"/>'
                label="科技项目-->完成数-->国家级">
        </td>
        <td>
            <input type='text' name='proposal/technology_complt_count_level2'
                id="technology_complt_count_level2" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_complt_count_level2"/>'
                label="科技项目-->完成数-->省级">
        </td>
        <td>
            <input type='text' name='proposal/technology_complt_count_level3'
                id="technology_complt_count_level3" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_complt_count_level3"/>'
                label="科技项目-->完成数-->产学研合作">
        </td>
        <td>
            <input type='text' name='proposal/technology_complt_count_level4'
                id="technology_complt_count_level4" class="required"
                onfocus="InitInput.setNumber(this,9,0,0)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_complt_count_level4"/>'
                label="科技项目-->完成数-->自主研发">
        </td>
        <td>
            <input type='text' name='proposal/technology_complt_count_total'
                id="technology_complt_count_total" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_complt_count_total"/>'
                label="科技项目-->完成数-->合计">
        </td>
    </tr>
    <tr>
        <td>
            经费投入总计<br />（万元）
        </td>
        <td colspan="2">
            <input type='text' name='proposal/technology_investment_total' class="required"
                id="technology_investment_total" onfocus="InitInput.setNumber(this,9,2,2)"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/technology_investment_total"/>'
                label="经费投入总计">
        </td>
        <td>
            其中研发投入<br />（万元）
        </td>
        <td colspan="2">
            <input type='text' name='proposal/r_d_investment' class="required" id="r_d_investment"
                onfocus="InitInput.setNumber(this,9,2,2)" style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/r_d_investment"/>' label="其中研发投入">
        </td>
    </tr>
</table>

<div class="t_bar">
    <span class="color_red">*</span>科技成果情况
</div>
<table class="t_css" width="100%" id="table_04" style="text-align: center;">
    <col style="width: 20%" />
    <col style="width: 20%" />
    <col style="width: 20%" />
    <col style="width: 20%" />
    <col style="width: 20%" />
    <tr>
        <td>&nbsp;</td>
        <td>成果获奖总数</td>
        <td>国家级奖</td>
        <td>省部级奖</td>
        <td>地市级奖</td>
    </tr>
    <tr>
        <td>合计</td>
        <td>
            <input type='text' name='proposal/achievements_total_status1'
                id="achievements_total_status1" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_total_status1"/>' label="">
        </td>
        <td>
            <input type='text' name='proposal/achievements_total_status2'
                id="achievements_total_status2" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_total_status2"/>' label="">
        </td>
        <td>
            <input type='text' name='proposal/achievements_total_status3'
                id="achievements_total_status3" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_total_status3"/>' label="">
        </td>
        <td>
            <input type='text' name='proposal/achievements_total_status4'
                id="achievements_total_status4" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_total_status4"/>' label="">
        </td>
    </tr>
    <tr>
        <td>其中：一等奖</td>
        <td>
            <input type='text' name='proposal/achievements_level1_status1'
                id="achievements_level1_status1" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_level1_status1"/>'
                label="">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level1_status2'
                id="achievements_level1_status2" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level1_status2"/>'
                label="其中：一等奖-->国家级奖">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level1_status3'
                id="achievements_level1_status3" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level1_status3"/>'
                label="其中：一等奖-->省部级奖">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level1_status4'
                id="achievements_level1_status4" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level1_status4"/>'
                label="其中：一等奖-->地市级奖">
        </td>
    </tr>
    <tr>
        <td>二等奖</td>
        <td>
            <input type='text' name='proposal/achievements_level2_status1'
                id="achievements_level2_status1" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_level2_status1"/>'
                label="">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level2_status2'
                id="achievements_level2_status2" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level2_status2"/>'
                label="二等奖-->国家级奖">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level2_status3'
                id="achievements_level2_status3" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level2_status3"/>'
                label="二等奖-->省部级奖">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level2_status4'
                id="achievements_level2_status4" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level2_status4"/>'
                label="二等奖-->地市级奖">
        </td>
    </tr>
    <tr>
        <td>三等奖</td>
        <td>
            <input type='text' name='proposal/achievements_level3_status1'
                id="achievements_level3_status1" class="gray" readonly="readonly"
                style="text-align: right; width: 80%;"
                value='<x:out select="$xmlData/data/proposal/achievements_level3_status1"/>'
                label="">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level3_status2'
                id="achievements_level3_status2" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level3_status2"/>'
                label="三等奖-->国家级奖">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level3_status3'
                id="achievements_level3_status3" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level3_status3"/>'
                label="三等奖-->省部级奖">
        </td>
        <td>
            <input type='text' name='proposal/achievements_level3_status4'
                id="achievements_level3_status4" class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/achievements_level3_status4"/>'
                label="三等奖-->地市级奖">
        </td>
    </tr>
    <tr>
        <td>开发新产品数量</td>
        <td colspan="2">开发新工艺（技术）数量</td>
        <td colspan="2">开发新设备（材料）数量</td>
    </tr>
    <tr>
        <td>
            <input type='text' name='proposal/dev_new_product_count' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/dev_new_product_count"/>'
                label="开发新产品数量">
        </td>
        <td colspan="2">
            <input type='text' name='proposal/dev_new_technics_count' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/dev_new_technics_count"/>'
                label="开发新工艺（技术）数量">
        </td>
        <td colspan="2">
            <input type='text' name='proposal/dev_new_equipment_count' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/dev_new_equipment_count"/>'
                label="开发新设备（材料）数量">
        </td>
    </tr>
    <tr>
        <td align="left" colspan="5">
            <strong>
                新增经济效益：
                <input type='text' name='proposal/new_economic_benefit' class="required"
                    onfocus="InitInput.setNumber(this,9,2,2,'',true)"
                    style="text-align: right; width: 100px; border: none; border-bottom: 1px solid gray;"
                    value='<x:out select="$xmlData/data/proposal/new_economic_benefit"/>'
                    label="新增经济效益">
                （万元）
            </strong>
        </td>
    </tr>
</table>

<div class="t_bar">
    <span class="color_red">*</span>签约院士及其科研团队人员情况
</div>
<table id="eq_table2" class="t_css" width="100%">
    <col style="width: 5%" />
    <col style="width: 5%" />
    <col style="width: 10%" />
    <col style="width: 16%" />
    <col style="width: 18%" />
    <col style="width: 18%" />
    <col style="width: 20%" />
    <col style="width: 8%" />
    <thead>
        <tr style="border: 1px solid #B7D1E6">
            <th class="TblHead" align="center">选择</th>
            <th class="TblHead" align="center">序号</th>
            <th class="TblHead" align="center">姓名</th>
            <th class="TblHead" align="center">职务</th>
            <th class="TblHead" align="center">职称</th>
            <th class="TblHead" align="center">从事专业</th>
            <th class="TblHead" align="center">具体负责工作</th>
            <th class="TblHead" align="center">在站工作累计数<br />（天）
            </th>
        </tr>
    </thead>
    <tbody id="tab">
        <tr style="display: none">
            <td align="center">
                <input type="radio" style="border: 0px; background-color: white;"
                    class="radiobutton" name="selButton2">
            </td>
            <td align="center">
                <span name="psn_conditions|psn_condition[0]@seq_no">[index]</span>
            </td>
            <td align="center">
                <input type="text" name="psn_conditions|psn_condition[0]|name" class="required"
                    maxlength="60" style="width: 80%" label="姓名" value="" />
            </td>
            <td align="center">
                <input type="text" name="psn_conditions|psn_condition[0]|job" class="required"
                    maxlength="60" style="width: 80%" label="职务" value="" />
            </td>
            <td align="center">
                <cpt:tree key="prof_title" cacheable="false" className="input_css " readonly="true"
                    value="" label="职称" width="50%" id="prof_title[index]" name="prof_title[0]"
                    showPattern="current" shieldPattern="0" topCheckbox="false"
                    onClick="initTreeValueExt" />
                <input type="hidden" name="psn_conditions|psn_condition[0]|prof_title_value"
                    id="prof_title[index]_value" class="required" value="" label="职称" />
                <input type="hidden" name="psn_conditions|psn_condition[0]|prof_title_name"
                    id="prof_title[index]_name" value="" />
            </td>
            <td align="center">
                <input type="text" name="psn_conditions|psn_condition[0]|work_major"
                    class="required" maxlength="40" style="width: 80%" label="从事专业" value="" />
            </td>
            <td align="center">
                <input type="text" name="psn_conditions|psn_condition[0]|specific_charge"
                    class="required" maxlength="50" style="width: 80%" label="具体负责工作" value="" />
            </td>
            <td align="center">
                <input type="text" name="psn_conditions|psn_condition[0]|work_time" class="required"
                    onfocus="InitInput.setNumber(this,5,0,0)" style="width: 80%; text-align: right;"
                    label="在站工作累计数" value="" />
            </td>
        </tr>


        <c:set value="0" var="index" scope="page" />
        <x:forEach select="$xmlData/data/psn_conditions/psn_condition" var="psn_condition">
            <c:choose>
                <c:when test="${index<10}">
                    <c:set value="0" var="flag" scope="page" />
                </c:when>
                <c:otherwise>
                    <c:set value="" var="flag" scope="page" />
                </c:otherwise>
            </c:choose>
            <tr>
                <td align="center">
                    <input type="radio" style="border: 0px; background-color: white;"
                        class="radiobutton" name="selButton2">
                </td>
                <td align="center">
                    <span name="psn_conditions/psn_condition[${flag}${index}]@seq_no"><x:out
                            select="$psn_condition/@seq_no" /></span>
                </td>
                <td align="center">
                    <input type="text" name="psn_conditions/psn_condition[${flag}${index}]/name"
                        value="<x:out select="$psn_condition/name" />" maxlength="60"
                        class="required" style="width: 80%" label="姓名 " />
                </td>
                <td align="center">
                    <input type="text" name="psn_conditions/psn_condition[${flag}${index}]/job"
                        value="<x:out select="$psn_condition/job" />" maxlength="60"
                        class="required" style="width: 80%" label="职务" />
                </td>
                <td align="center">
                    <c:set var="nature1">{'id':'<x:out
                            select="$psn_condition/prof_title_value" />','name':'<x:out
                            select="$psn_condition/prof_title_name" />'}</c:set>
                    <cpt:tree key="prof_title" cacheable="false" className="input_css"
                        readonly="true" value="${nature1}" label="职称" width="50%"
                        id="prof_title${flag}${index}" name="prof_title${flag}${index}"
                        showPattern="current" shieldPattern="0" topCheckbox="false"
                        onClick="initTreeValueExt" />
                    <input type="hidden" id="prof_title${flag}${index}_value"
                        name="psn_conditions/psn_condition[${flag}${index}]/prof_title_value"
                        class="required" value="<x:out select="$psn_condition/prof_title_value" />"
                        label="职称" />
                    <input type="hidden" id="prof_title${flag}${index}_name"
                        name="psn_conditions/psn_condition[${flag}${index}]/prof_title_name"
                        value="<x:out select="$psn_condition/prof_title_name" />" />

                </td>
                <td align="center">
                    <input type="text"
                        name="psn_conditions/psn_condition[${flag}${index}]/work_major"
                        value="<x:out select="$psn_condition/work_major" />" maxlength="40"
                        class="required" style="width: 80%" label="从事专业" />
                </td>
                <td align="center">
                    <input type="text"
                        name="psn_conditions/psn_condition[${flag}${index}]/specific_charge"
                        value="<x:out select="$psn_condition/specific_charge" />" maxlength="50"
                        class="required" style="width: 80%" label="具体负责工作" />
                </td>
                <td align="center">
                    <input type="text"
                        name="psn_conditions/psn_condition[${flag}${index}]/work_time"
                        value="<x:out select="$psn_condition/work_time" />"
                        onfocus="InitInput.setNumber(this,5,0,0)"
                        style="width: 80%; text-align: right;" label="在站工作累计数" class="required" />
                </td>
            </tr>
            <c:set value="${index+1}" var="index" scope="page" />
        </x:forEach>
    </tbody>
</table>
<table width="98%" align="center">
    <tr>
        <td>
            <input class="button_02" name="cmdAddbefore" type=button value="添加"
                onclick="if(checkTabLimit('eq_table2',999,'签约院士及其科研团队人员情况内容最多只能填写999条')){addNewRow('eq_table2');showDateTag('eq_table2');}try{top.resizeFrame();}catch(e){};">
            <input class="button_02" name="cmdMovePrev" type=button value="上移"
                onclick="movePrev('eq_table2','selButton2');">
            <input class="button_02" name="cmdMoveNext" type=button value="下移"
                onclick="moveNext('eq_table2','selButton2');">
            <input class="button_02" name="cmddel" type=button value="删除"
                onclick="deleteSelectedRow('eq_table2','签约院士及其科研团队人员情况');">
        </td>
    </tr>
</table>

<div class="t_bar">
    <span class="color_red">*</span>创造自主知识产权情况
</div>
<table class="t_css" width="100%" id="table_05" style="text-align: center;">
    <col style="width: 16%;" />
    <col style="width: 16%;" />
    <col style="width: 16%;" />
    <col style="width: 16%;" />
    <col style="width: 10%;" />
    <col style="width: 10%;" />
    <col style="width: 16%;" />
    <tr>
        <td rowspan="2">
            申请发明专利数<br />（项）
        </td>
        <td rowspan="2">
            授予发明专利数<br />（项）
        </td>
        <td rowspan="2">
            发表论文、著作<br />（篇）
        </td>
        <td rowspan="2">
            软件著作权<br />（项）
        </td>
        <td colspan="2">制定标准</td>
        <td rowspan="2">其他</td>
    </tr>
    <tr>
        <td>国家</td>
        <td>行业</td>
    </tr>
    <tr>
        <td>
            <input type='text' name='proposal/property_right_situation_status1' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status1"/>'
                label="申请发明专利数">
        </td>
        <td>
            <input type='text' name='proposal/property_right_situation_status2' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status2"/>'
                label="授予发明专利数">
        </td>
        <td>
            <input type='text' name='proposal/property_right_situation_status3' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status3"/>'
                label="发表论文、著作">
        </td>
        <td>
            <input type='text' name='proposal/property_right_situation_status4' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status4"/>'
                label="软件著作权">
        </td>
        <td>
            <input type='text' name='proposal/property_right_situation_status5' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status5"/>'
                label="制定标准-->国家">
        </td>
        <td>
            <input type='text' name='proposal/property_right_situation_status6' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status6"/>'
                label="制定标准-->行业">
        </td>
        <td>
            <input type='text' name='proposal/property_right_situation_status7' class="required"
                style="text-align: right; width: 80%;" onfocus="InitInput.setNumber(this,9,0,0)"
                value='<x:out select="$xmlData/data/proposal/property_right_situation_status7"/>'
                label="其他">
        </td>
    </tr>
</table>
<script type="text/javascript">
	function initTreeValueExt(treeId, treeNode) {
		if ((treeNode && treeNode.isParent)) {
			scmWarn("请选择具体的" + $("#" + treeId).attr("label"));
			$("#" + treeId).val("");
			$("#" + treeId).parents("td").find(
					"[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val("");
			$("#" + treeId).parents("td").find(
					"[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val("");
			$("#" + treeId).parents("td").find(
					"[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val("");
			return false;
		}
		var str = treeNode.name;
		var obj = treeNode.parentNode;
		while (obj != null) {
			str = obj.name + "-" + str;
			obj = obj.parentNode;
		}
		
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_code'],[id$='" + treeId + "_code']").val(treeNode.id);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_value'],[id$='" + treeId + "_value']").val(treeNode.id);
		$("#" + treeId).parents("td").find(
				"[name$='" + treeId + "_name'],[id$='" + treeId + "_name']").val(str);
	}
	//--------------------计算总数------------------begin
	$('#worker_level1_count,#worker_level2_count,#worker_level3_count').change(function() {
		getTotalCount('worker_', 'level1_count,level2_count,level3_count', 'research_total');
	});
	$(
			'#technology_bear_count_level1,#technology_bear_count_level2,#technology_bear_count_level3,#technology_bear_count_level4')
			.change(function() {
				getTotalCount('technology_bear_count_', 'level1,level2,level3,level4', 'total');
			});
	$(
			'#technology_complt_count_level1,#technology_complt_count_level2,#technology_complt_count_level3,#technology_complt_count_level4')
			.change(function() {
				getTotalCount('technology_complt_count_', 'level1,level2,level3,level4', 'total');
			});
	$('#achievements_level1_status2,#achievements_level1_status3,#achievements_level1_status4')
			.change(function() {
				getTotalCount('achievements_level1_', 'status2,status3,status4', 'status1');
			});
	$('#achievements_level2_status2,#achievements_level2_status3,#achievements_level2_status4')
			.change(function() {
				getTotalCount('achievements_level2_', 'status2,status3,status4', 'status1');
			});
	$('#achievements_level3_status2,#achievements_level3_status3,#achievements_level3_status4')
			.change(function() {
				getTotalCount('achievements_level3_', 'status2,status3,status4', 'status1');
			});
	$('#achievements_level1_status2,#achievements_level2_status2,#achievements_level3_status2')
			.change(
					function() {
						getTotalCount('achievements_',
								'level1_status2,level2_status2,level3_status2', 'total_status2');
						getTotalCount('achievements_total_', 'status2,status3,status4', 'status1');
					});
	$('#achievements_level1_status3,#achievements_level2_status3,#achievements_level3_status3')
			.change(
					function() {
						getTotalCount('achievements_',
								'level1_status3,level2_status3,level3_status3', 'total_status3');
						getTotalCount('achievements_total_', 'status2,status3,status4', 'status1');
					});
	$('#achievements_level1_status4,#achievements_level2_status4,#achievements_level3_status4')
			.change(
					function() {
						getTotalCount('achievements_',
								'level1_status4,level2_status4,level3_status4', 'total_status4');
						getTotalCount('achievements_total_', 'status2,status3,status4', 'status1');
					});
	
	//--------------------计算总数------------------end
	/**
	 ----------------------by zk
	 参数prefix：公共的id开头
	 参数count：需要加的数的id结尾     以,分割
	 参数total：总数id结尾
	 参数isDeciaml：是否为小数 默认为false
	 */
	function getTotalCount(prefix, count, total, isDecimal) {
		var defaultIsDecimal = false;//默认为整数
		if (isDecimal == null) {
			isDecimal = defaultIsDecimal;
		}
		var numStr = count.split(',');
		var totalCount = 0;//总数
		if (!isDecimal) {
			for ( var int = 0; int < numStr.length; int++) {
				var num = $('#' + prefix + numStr[int]).val();
				if (!$.isNumeric(num))
					num = "0";
				totalCount += parseInt(num);
			}
		} else {
			for ( var int = 0; int < numStr.length; int++) {
				var num = $('#' + prefix + numStr[int]).val();
				if (!$.isNumeric(num))
					num = "0";
				totalCount += parseFloat(num);
			}
			totalCount = ((totalCount / 100) * 100).toFixed(2);
		}
		$('#' + prefix + total).val(totalCount);
	}
</script>
